package com.wuhuahe.learning.lagou.service.code.pojo;

import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

/**
 * CREATE TABLE public."lagou_auth_code" (
 * 	id                    serial,
 * 	email varchar(300) NOT NULL,
 * 	code varchar(6) NOT NULL,
 * 	createtime timestamp NULL DEFAULT now(),
 * 	expiretime timestamp NULL DEFAULT now(),
 * 	CONSTRAINT auth_code_pkey PRIMARY KEY (id)
 * );
 */
@Data
public class Code {

    // 自增注解
    private Integer id;
    // 邮箱地址
    private String email;
    // 验证码
    private String code;
    // 创建时间
    private Timestamp createtime;
    // 过期时间
    private Timestamp expiretime;

}
